package photogcalc;

import photogcalc.util.Settings;
import javax.microedition.lcdui.Screen;

/**
 *
 * @author aokkonen
 */
public class PropertiesController implements PropertiesCommandListener {

    private ChildFormListener listener;

    private PropertiesModel model = null;
    private PropertiesView view = null;

    public PropertiesController(ChildFormListener listener, Settings settings) {
        this.listener = listener;

        model = new PropertiesModel(settings);
        view = new PropertiesView(this, model.getSettings());
    }

    public void cancelCommand() {
        listener.signalExit();
    }

    public void saveCommand() {
        listener.signalExit();
    }

    public Screen getScreen() {
        return view.getScreen();
    }
}
